package dto;

import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode
@ToString
public class ResponseBean <T> {
    private String stateCode;
    private T data;

    public static ResponseBean<?> defaultError = new ResponseBean<>();
    public static ResponseBean<?> defaultOk = new ResponseBean<>();
    public static String STATE_OK = "200";
    public static String STATE_ERROR = "500";

    static {
        defaultError.stateCode = "500";
        defaultError.data = null;
        defaultOk.data = null;
        defaultOk.stateCode = "200";
    }
}
